package com.ay.weixin.autoreply.db;

import java.sql.SQLException;

import lizar.db.ibatis.Dao;

import com.ay.weixin.autoreply.domain.AccessToken;

public class IbatisAcessTokenDao extends Dao{

	public AccessToken getLatest(long wxproject_id) throws SQLException{
		return (AccessToken)this.sqlMapper.queryForObject("access_token.getLatest");
	}
	
	public void delete(long wxproject_id) throws SQLException{
		this.sqlMapper.delete("access_token.delete");
	}
	
	public void insert(AccessToken acess_token) throws SQLException{
		this.sqlMapper.insert("access_token.insert",acess_token);
	}
	
}
